package utils;

import java.util.Comparator;
import java.util.Map;

public class ValueComparatorMyPair implements Comparator<String> {
	Map<String, Double> base;
	
	public ValueComparatorMyPair(Map<String, Double> base) {
		this.base = base;
	}

	@Override
	public int compare(String arg0, String arg1) {
		if (base.get(arg0) >= base.get(arg1)) {
			return -1;
		} else {
			return 1;
		}
	}
}